﻿<?php echo $header; ?>
<div class="container">   
	<div class="content">
    	<div class="bodyLeft">
        	<?php echo $column_left; ?>
        </div><!-- end body left -->
        <div class="bodyRight">
        	 <?php require_once("catalog/view/theme/fritids/template/slideshow/slider.php"); ?>
            <div class="body-content">
            	<div class="heading">	
								
                    <h2 class="float_left">
					<?php foreach ($breadcrumbs1 as $breadcrumb) { ?> 
					<?php echo $breadcrumb['text']; ?> 
					<?php  } ?>
					</h2>
					
                    <img src="catalog/view/theme/fritids/image/imgArrow-4.png" class="float_left arrow-next">
                    <h3 class="float_left item-next"><?php echo $heading_title; ?></h3>
                    <img src="catalog/view/theme/fritids/image/imgTemp1.png" class="imgTemp">
                    <div class="clear"></div>
                </div>	
					<div id="product-detail-div">
					<?php if ($display_price) { ?>
						<form action="<?php echo str_replace('&', '&amp;', $action); ?>" method="post" enctype="multipart/form-data" id="product">					
							<fieldset>
                            <div id="product-left">
                            	<a href="./image/<?php echo $im_large ; ?>" id="product-image" class="zoomImage"><img src="./image/<?php echo $im_large; ?>" title="<?php echo $heading_title; ?>"></a>
                                <a href="./image/<?php echo $im_large ; ?>" id="product-zoom" class="zoomImage"><img src="catalog/view/theme/fritids/image/btnZoom.png"></a>
                            </div><!-- end product left -->
                            <div id="product-right">
                            	<h2><?php echo $heading_title; ?>.</h2>
                                <p><?php echo $description; ?> </p>
								<?php if($display_price){?>
                                <p><?php echo $text_price; ?>
								<?php if (!$special) { ?>
								<span>DKK </span><span class="product-price"><?php echo $price; ?></span></p>
								  <?php } else { ?>
								   <span class="product-price"><?php echo $price; ?></span><br><span class="product-price"><?php echo $special; ?></span>
								   <?php } ?>             
								   <?php } ?>  
                               <label><?php echo $text_qty; ?></label>
                               <input name="quantity" type="text" value="1" readonly="readonly" >
								<?php if ($minimum > 1) { ?><br/><small><?php echo $text_minimum; ?></small><?php } ?>
								</div><!-- end product right -->
								<div id="product-bottom">
									<a href="javascript:history.back()" id="product-back">Back</a>
									<a id="product-add-to-cart" data-reveal-id="myModal1">Add to cart</a>								
									<a href="index.php?route=checkout/cart" id="product-go-to-cart">Go to cart</a>
									<div class="clear"></div>
								</div>
								<div class="reveal-modal" id="myModal1" style="top: 236px; opacity: 1; visibility: hidden;">
									<a class="close-reveal-modal">×</a>
									<div id="modal-box">
										<div id="modal-image">
											<img src="./image/<?php echo $im_large ; ?>">
										</div>
										<div id="modal-content">
											<h2><?php echo $heading_title;?>.</h2>
											<p><?php echo $description;?>...</p>
										</div>
										<div class="clear"></div>
										<a href="index.php?route=checkout/cart" id="btnToPayment">Payment</a>
									</div>
								</div><div class="reveal-modal-bg" style="display: none; cursor: pointer;"></div>
								<div class="clear"></div>
								</fieldset>
							 <div>
								<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
								<input type="hidden" name="redirect" value="<?php echo str_replace('&', '&amp;', $redirect); ?>" />                
							</div>
							</form>		
					<?php } ?>							
					</div>
				<div class="clear"></div>
			</div>		 
		</div>	
	</div>      
</div>
<?php echo $footer; ?>        
  <script type="text/javascript">
  $('#product-add-to-cart').click(function (even) {
	even.preventDefault();	
		$.ajax({
			type: 'post',
			url: '<?php echo $refresh_cart ?>',
			dataType: 'html',
			data: $('#product :input'),
			success: function (html) {
				$('#cart_qty').html(html);
			},	
			complete: function () {
				
			}			
		});			
	});		

  </script>  